import java.util.Random;

public class count9 {
    public static void main(String[] args) {
        int i=1;
        int con=0;
        for(i=1;i<101;i++) {
            if(i%10==9) {
                con++;
            }
            if((i/10)>0&&(i/10)%9==0) {
                con++;
            }
        }
        System.out.println(con);

        Random random =new Random();
        int randNum= random.nextInt(100);
    }
}
